libxl: change default HVM emulated network card to rtl8139
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 2 Feb 2011 17:05:27 +0000 (17:05 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 2 Feb 2011 17:05:27 +0000 (17:05 +0000)
xend uses rtl8139, and we want xl to be compatible with xm.  Some
older operating systems don't have e1000 drivers, and we want widest
compatibility rather than best performance (people who want good
performance are best advised to use PV-on-HVM drivers).

We'll probably switch to a new default when switching to upstream
qemu, in the Xen 4.2 release cycle.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c

index 538932948df9550647f092c0f0b55bd1dd2d2a20..9359f515be68bfe2384571cbee63b89a0b6cec82 100644 (file)
@@ -1106,7 +1106,7 @@ int libxl_device_nic_init(libxl_device_nic *nic_info, int devnum)
     nic_info->domid = 0;
     nic_info->devid = devnum;
     nic_info->mtu = 1492;
-    nic_info->model = strdup("e1000");
+    nic_info->model = strdup("rtl8139");
     nic_info->mac[0] = 0x00;
     nic_info->mac[1] = 0x16;
     nic_info->mac[2] = 0x3e;